cmake_minimum_required (VERSION 3.16.0)

project(iodp)

add_compile_options(-std=c++17)

if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
add_compile_options(-g)
add_compile_options(-Wall)
add_compile_options(-fPIC)
endif()

if(${CMAKE_BUILD_TYPE} MATCHES "Release")
add_compile_options(-Wall)
add_compile_options(-fPIC)
endif()

include_directories(../iosvr/ ../iosvr/Buffer .)
aux_source_directory(. DIR_SRCS)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/../build/iosvr/iodp)
add_library(${PROJECT_NAME} SHARED ${DIR_SRCS})